package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("article")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article {

    @TableId
    /**
     * 公告id，自动生成
     * @required
     */
    private Long articleId;
    /**
     *  公告的链接
     */
    private String articleHref;
    /**
     * 公告标题
     */
    private String articleTitle;
    /**
     * 公告的发布时间
     */
    private String articlePubtime;
    /**
     * 公告的发布来源
     */
    private String articleSource;
    /**
     * 公告的内容
     */
    private String articleContent;

    public Article(String articleHref, String articleTitle, String articlePubtime, String articleSource, String articleContent) {
        this.articleHref = articleHref;
        this.articleTitle = articleTitle;
        this.articleContent = articleContent;
        this.articleSource = articleSource;
        this.articlePubtime = articlePubtime;
    }
}